﻿using System;
using KuiHuaBaoDian;

namespace Runtime.Models {

    public interface IDFR_Model : IDFR_Entity, IModel {
    }

    public abstract class DFR_Model : KHBD_NetModel, IDFR_Model {

        protected override void AddNetModelListener(Type messageType, Action<object> listener) {
            DFR_Core.Net.AddListener(messageType, listener);
        }

        protected override void RemoveNetModelListener(Type messageType, Action<object> listener) {
            DFR_Core.Net.RemoveListener(messageType, listener);
        }
    }
}
